<template>
	<div class="need">
		
		<div class="need-info">
			感谢您对我院的信任，选择来我院就诊！ <br>
			我院积极推行检查检验结果互认，请您就医时，携带近期相关检查检验资料。接诊医生会根据实际情况对您前期的检查检验结果合理互认。结果互认，避免重复检查利民惠民!<br>
			为了保证您能顺利挂号就诊，请您认真阅读并遵守挂号就诊须知，并选择同意接受或不同意接受
			 <br>1.请认真填写患者预约挂号流调表，确保真实有效。
			 <br>2.我院实行实名制预约挂号就诊，请您使用患者本人的二代身份证(18位数)或医保卡进行预约，请保证预约、挂号时使用的证件信息与就诊患者身份信息保持一致，如信息不符，则本次预约挂号视为无效，请在确认预约后十分钟内完成支付，否则本次预约挂号将被取消。
			 <br>3.报到、候诊:预约挂号 (含当日挂号) 并付款成功的患者，就诊当日使用二维码、或身份证、医保卡前往相应诊区自助机或分诊台进行报到，并等候叫号就诊 (注: 请您至少提前十分钟完成报到，如预约候诊时段为09:00到09:30，请于8:50前完成报到)。
		</div>
		<div class="need-btn" @click="toPageLink('/choose')">同意须知，开始预约</div>
		<div class="need-list">
			<div class="need-list-i" v-for="(v,i) in listData" :key='i' @click="toPageLink(v.path)">
				<img class="need-list-i-img" :src="v.img" alt="" v-if='i==2'>
				<div class="img" v-else>
					<img :src="v.img" alt="">
				</div>
				<div>{{v.name}}</div>
			</div>
		</div>
		<back-img></back-img>
	</div>
</template>

<script>
	export default {
		data() {
			return {
                 listData:[
					 {name:'挂号记录',img:require('@/assets/img/index/see3.png'),path:'/myRegistration'},
					 {name:'门诊缴费',img:require('@/assets/img/index/see4.png'),path:'/pay'},
					 {name:'报告查询',img:require('@/assets/img/index/see1.png'),path:'/report'},
					 {name:'绑定就诊人',img:require('@/assets/img/index/see2.png'),path:'/visitorCard'},
				 ],
			};
		},
		created() {
			
		},
		components: {

		},
		methods: {
			toPageLink(url){
				if(url=='/choose'){
					this.$store.commit("updateportInfo",{});
					this.$router.push({
						path:url,
						query:{
							type:'index'
						},
					})
					return
				}
				this.$store.commit("updateportInfo",{});
				this.$router.push({
					path:url,
					query:{},
				})
			} 
		}
	};
</script>

<style lang="less" scoped>
	.need{
		min-height: 100vh;
		background-color: #fff;
		&-info{
			padding: 13px 18px 31px 18px;
			font-size: 13px;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #666666;
			line-height: 25px;
		}
		&-list{
			padding: 0 41px 40px 41px;
			display: flex;
			align-items: center;
			flex-wrap: wrap;
			justify-content: space-between;
			&-i{
				width: 136px;
				height: 76px;
				background: #FFFFFF;
				box-shadow: 0px 2px 3px 0px rgba(7,0,2,0.08);
				border-radius: 5px;
				margin-bottom: 13px;
				font-size: 13px;
				font-family: MiSans;
				font-weight: 400;
				color: #333333;
				text-align: center;
				&-img{
					width: 35px;
					margin:4px auto 7px auto;
				}
				.img{
					width: 40px;
					height: 40px;
					background: #F0F8F8;
					border-radius: 50%;
					margin:7px auto;
					display: flex;
					align-items: center;
					justify-content: center;
					img{
						width: 24px;
					}
				}
			}
		}
		&-btn{
			text-align: center;
			line-height: 44px;
			width: 340px;
			height: 44px;
			background: linear-gradient(90deg, #5CD2A3 0%, #3EC6D9 100%);
			border-radius: 22px;
			font-size: 15px;
			color: #fff;
			margin: 0 auto 34px auto;
		}
	}
</style>